{% load static %}
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="csrf-token" content="">
    <script src="{% static 'js/bootstrap.min.js' %}"></script>
    <script src="{% static 'js/jquery-3.7.1.min.js' %}"></script>
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'css/MyLife_CSS.css' %}">
    <link rel="icon" href="{% static 'images/logo.png' %}">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {% block head %}

    {% endblock %}
    <title>
        音乐
        {% block title %}
        {% endblock %}
    </title>
</head>

<body>
    <nav class="navbar navbar-expand-lg fixed-top navbar-light">
        <a href="#" class="btn btn-lg" onclick="goBack()">返回</a>
        <a href="/">
            <img src="{% static 'images/logo.png' %}" alt="header-Logo" height="120px"></a>
        {% if username %}
        <a href="/social/{{ username }}/">个人主页</a>
        {% endif %}
        <a href="/music/index/">单曲排行榜</a>
        {% if user_id %}
        <a href="/music/likes/">{{username}}的收藏</a>
        <a href="/music/recommendations/{{ user_id }}/">个性化音乐推荐</a>
        {% endif %}
    </nav>
    <br><br> <!--添加换行，避免导航栏覆盖页面的首行内容 -->
    {% block body %}

    {% endblock %}
<script>
    function goBack() {
      window.history.back();
    }
</script>
</body>

</html>